import type {BaseRsp, ListData, PageParamsType} from "@/api/index";
import {useAxios} from "@/api/index";

// 查询图片
export interface ImagesListRsp {
    id: number
    created_at: Date
    path: string
    hash: string
    name: string
    image_type: string
}

export function imageListAxios(params: PageParamsType): Promise<BaseRsp<ListData<ImagesListRsp>>> {
    return useAxios.get("/admin/image/list", {params})
}
